export interface IBreadcrumb {
  /**面包屑名称 */
  name: string;
  /**面包屑地址 */
  path?: string;
}
export interface IMenu {
  title?: string;
  path?: string;
  key?: string;
  breadcrumb?: Array<IBreadcrumb>;
  children?: Array<IMenu>;
  display?: boolean;
  icon?: string;
  component?: any;
}
const Menus: Array<IMenu> = [
  {
    title: "首页",
    path: "/",
    key: "index",
    breadcrumb: [
      {
        name: "首页"
      }
    ],
    children: [],
    display: false,
    icon: undefined,
    component: require("../routes/Index")
  },
  {
    title: "店铺管理",
    path: "/store",
    key: "store",
    children: [
      // {
      //     title: '店铺列表',
      //     path: '/store/stores',
      //     key: 'store.stores',
      //     breadcrumb: [
      //         {
      //             name: '店铺管理'
      //         },
      //         {
      //             name: '店铺列表'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/stores/Stores')
      // },
      // {
      //     title: '店铺申请',
      //     path: '/store/verifystores',
      //     key: 'store.verifystores',
      //     breadcrumb: [
      //         {
      //             name: '店铺管理'
      //         },
      //         {
      //             name: '店铺申请'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/stores/VerifyStores')
      // },
      // {
      //     title: '店铺申请设置',
      //     path: '/store/registerstore',
      //     key: 'store.registerstore',
      //     breadcrumb: [
      //         {
      //             name: '店铺管理'
      //         },
      //         {
      //             name: '店铺申请设置'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/stores/RegisterStores')
      // },

      // {
      //     title: '店铺结算',
      //     path: '/store/verifybalancestores',
      //     key: 'store.verifybalancestores',
      //     breadcrumb: [
      //         {
      //             name: '店铺管理'
      //         },
      //         {
      //             name: '店铺结算'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/stores/VerifyBalanceStores')
      // },

      {
        title: "店铺列表",
        path: "/store/stores",
        key: "store.stores",
        breadcrumb: [
          {
            name: "店铺管理"
          },
          {
            name: "店铺列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/stores/Stores")
      },
      {
        title: "经营范围",
        path: "/mall/businessScope",
        key: "store.businessScope",
        breadcrumb: [
          {
            name: "店铺管理"
          },
          {
            name: "经营范围"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/businessScope")
      }
    ],
    display: true,
    icon: undefined
  },
  // {
  //     title: '师傅管理',
  //     path: '/worker',
  //     key: 'worker',
  //     children: [
  //         {
  //             title: '师傅列表',
  //             path: '/worker/workers',
  //             key: 'worker.workers',
  //             breadcrumb: [
  //                 {
  //                     name: '师傅管理'
  //                 },
  //                 {
  //                     name: '安装师傅列表'
  //                 }
  //             ],
  //             display: true,
  //             icon: undefined,
  //             component: require('../routes/workers/Workers')
  //         }
  //     ],
  //     display: true,
  //     icon: undefined
  // },
  //     {
  //     title: '广告管理',
  //     path: '/advter',
  //     key: 'advter',
  //     children: [
  //         {
  //             title: '广告列表',
  //             path: '/advter/advters',
  //             key: 'advter.advters',
  //             breadcrumb: [
  //                 {
  //                     name: '广告管理'
  //                 },
  //                 {
  //                     name: '广告列表'
  //                 }
  //             ],
  //             display: true,
  //             icon: undefined,
  //             component: require('../routes/advters/Advters')
  //         }
  //     ],
  //     display: true,
  //     icon: undefined
  // },
  {
    title: "商城管理",
    path: "/mall",
    key: "mall",
    children: [
      {
        title: "商品列表",
        path: "/mall/items",
        key: "mall.items",
        breadcrumb: [
          {
            name: "商城管理"
          },
          {
            name: "商品列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/Items")
      },
      {
        title: "商品详情",
        path: "/mall/item",
        key: "mall.item",
        breadcrumb: [
          {
            name: "商城管理"
          },
          {
            name: "商品详情"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/malls/Item")
      },
      {
        title: "商品分类",
        path: "/mall/itemcategories",
        key: "mall.itemcategories",
        breadcrumb: [
          {
            name: "商城管理"
          },
          {
            name: "商品分类"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/ItemCategories")
      },
      {
        title: "推荐类型",
        path: "/mall/recommendcategories",
        key: "mall.recommendcategories",
        breadcrumb: [
          {
            name: "商城管理"
          },
          {
            name: "推荐类型"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/RecommendCategories")
      },
      {
        title: "首页图片",
        path: "/mall/banners",
        key: "mall.banners",
        breadcrumb: [
          {
            name: "商城管理"
          },
          {
            name: "首页图片"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/Banners")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "订单管理",
    path: "/order",
    key: "order",
    children: [
      {
        title: "订单列表",
        path: "/order/orders",
        key: "order.orders",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "订单列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/orders/orders")
      },
      {
        title: "分红订单列表",
        path: "/order/treeOrders",
        key: "order.treeOrders",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "分红订单列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/orders/treeOrders")
      },
      {
        title: "订单详情",
        path: "/order/order",
        key: "order.order",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "订单详情"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/orders/order")
      },

      {
        title: "退款申请",
        path: "/order/refundapplies",
        key: "order.refundapplies",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "退款申请"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/orders/refundapplies")
      },
      {
        title: "退款历史",
        path: "/order/refundhitories",
        key: "order.refundhitories",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "退款历史"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/orders/refundhistories")
      },
      {
        title: "退款详情",
        path: "/order/refund",
        key: "order.refund",
        breadcrumb: [
          {
            name: "订单管理"
          },
          {
            name: "退款详情"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/orders/refund")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "文章管理",
    path: "/article",
    key: "article",
    children: [
      {
        title: "文章列表",
        path: "/article/articles",
        key: "article.articles",
        breadcrumb: [
          {
            name: "文章管理"
          },
          {
            name: "文章列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/articles/Articles")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "视频管理",
    path: "/video",
    key: "video",
    children: [
      {
        title: "视频列表",
        path: "/video/videos",
        key: "video.videos",
        breadcrumb: [
          {
            name: "视频管理"
          },
          {
            name: "视频列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/videos/Videos")
      }
    ],
    display: true,
    icon: undefined
  },
  // {
  //   title: "佣金管理",
  //   path: "/commission",
  //   key: "commission",
  //   children: [
  //     {
  //       title: "佣金设置",
  //       path: "/commission/commissions",
  //       key: "commission.commissions",
  //       breadcrumb: [
  //         {
  //           name: "佣金管理"
  //         },
  //         {
  //           name: "佣金设置"
  //         }
  //       ],
  //       display: true,
  //       icon: undefined,
  //       component: require("../routes/commissions/Commissions")
  //     }
  //   ],
  //   display: true,
  //   icon: undefined
  // },
  {
    title: "分红管理",
    path: "/dividend",
    key: "dividend",
    children: [
      {
        title: "分红设置",
        path: "/dividend/dividends",
        key: "dividend.dividends",
        breadcrumb: [
          {
            name: "分红管理"
          },
          {
            name: "分红设置"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/dividends/Dividends")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "体验金管理",
    path: "/rule",
    key: "rule",
    children: [
      {
        title: "用户体验金列表",
        path: "/rule/allUserPoints",
        key: "rule.allUserPoints",
        breadcrumb: [
          {
            name: "体验金管理"
          },
          {
            name: "用户体验金列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/UserPoints")
      },
      {
        title: "活动奖励列表",
        path: "/rule/actives",
        key: "rule.actives",
        breadcrumb: [
          {
            name: "体验金管理"
          },
          {
            name: "活动奖励列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/Actives")
      },
      {
        title: "体验金奖励设置",
        path: "/rule/pointRules",
        key: "rule.pointRules",
        breadcrumb: [
          {
            name: "体验金管理"
          },
          {
            name: "体验金奖励设置"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/PointRules")
      },
      {
        title: "体验金释放规则",
        path: "/rule/releasePointRules",
        key: "rule.releasePointRules",
        breadcrumb: [
          {
            name: "体验金管理"
          },
          {
            name: "体验金释放规则"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/malls/ReleasePointRules")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "参数管理",
    path: "/storesetting",
    key: "storesetting",
    children: [
      {
        title: "参数设置",
        path: "/storesetting/storeSettings",
        key: "storesetting.storesettings",
        breadcrumb: [
          {
            name: "参数管理"
          },
          {
            name: "参数设置"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/storeSettings/StoreSettings")
      }
      // {
      //     title: 'APP启动广告',
      //     path: '/storesetting/advertSettings',
      //     key: 'storesetting.advertsettings',
      //     breadcrumb: [
      //         {
      //             name: '参数管理'
      //         },
      //         {
      //             name: 'APP启动广告'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/storeSettings/AdvertSettings')
      // },
      // {
      //     title: '首页字体颜色',
      //     path: '/storesetting/homeSettings',
      //     key: 'storesetting.homesettings',
      //     breadcrumb: [
      //         {
      //             name: '参数管理'
      //         },
      //         {
      //             name: '首页字体颜色'
      //         }
      //     ],
      //     display: true,
      //     icon: undefined,
      //     component: require('../routes/storeSettings/HomeSettings')
      // }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "角色管理",
    path: "/role",
    key: "role",
    children: [
      {
        title: "角色列表",
        path: "/role/roles",
        key: "role.roles",
        breadcrumb: [
          {
            name: "角色管理"
          },
          {
            name: "角色列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/roles/Roles")
      },
      {
        title: "角色编辑",
        path: "/role/role",
        key: "role.role",
        breadcrumb: [
          {
            name: "角色管理"
          },
          {
            name: "角色编辑"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/roles/Role")
      }
    ],
    display: true,
    icon: undefined
  },
  {
    title: "用户管理",
    path: "/user",
    key: "user",
    children: [
      {
        title: "管理员列表",
        path: "/user/admins",
        key: "user.admins",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "管理员列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/users/Admins")
      },
      {
        title: "用户列表",
        path: "/user/users",
        key: "user.users",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "用户列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/users/Users")
      },
      {
        title: "用户详情",
        path: "/user/user",
        key: "user.user",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "用户详情"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/users/User")
      },
      {
        title: "用户分红列表",
        path: "/user/userDividen",
        key: "user.userDividen",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "用户分红列表"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/users/UserDividen")
      },
      {
        title: "用户分红详情",
        path: "/user/userDividenDetail",
        key: "user.userDividenDetail",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "用户分红详情"
          }
        ],
        display: false,
        icon: undefined,
        component: require("../routes/users/UserDividenDetail")
      },
      {
        title: "提现审核",
        path: "/user/userCashs",
        key: "user.userCashs",
        breadcrumb: [
          {
            name: "用户管理"
          },
          {
            name: "提现审核"
          }
        ],
        display: true,
        icon: undefined,
        component: require("../routes/users/UserCashs")
      }
    ],
    display: true,
    icon: undefined
  }
];
export default Menus;
